import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:mtf/app/modules/authentication_info_module/authentication_info_controller.dart';
import 'package:mtf/app/theme/app_colors.dart';
import 'package:mtf/app/widget/AppBarLeftTitle.dart';
/**
 * GetX Template Generator - fb.com/htngu.99
 * */

class authenticationInfoPage extends GetView<authenticationInfoController> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBarLeftTitle(title:"实名认证"),
      body: ListView.builder(itemBuilder: (context,index){
        return  Container(
          width: double.infinity,
          margin: EdgeInsets.all(10),
          decoration: BoxDecoration(
              color: Colors.white,
              borderRadius: BorderRadius.circular(10)
          ),
          child: Column(
            children: [
              Padding(
                padding: const EdgeInsets.symmetric(vertical: 16,horizontal: 10),
                child: Flex(direction: Axis.horizontal,mainAxisAlignment: MainAxisAlignment.spaceBetween,children: [
                  Text("真实姓名"),
                  Text(controller.user.value.fullName ??"")
                ],),
              ),
              Divider(height: 1,),
              Padding(
                padding: const EdgeInsets.symmetric(vertical: 16,horizontal: 10),
                child: Flex(direction: Axis.horizontal,mainAxisAlignment: MainAxisAlignment.spaceBetween,children: [
                  Text("身份证号"),
                  Text(controller.user.value.no ?? "")
                ],),
              ),
              Divider(height: 1,),
              Padding(
                padding: const EdgeInsets.symmetric(vertical: 16,horizontal: 10),
                child: Flex(direction: Axis.horizontal,mainAxisAlignment: MainAxisAlignment.spaceBetween,children: [
                  Text("手机号"),
                  Text(controller.user.value.phone ?? "")
                ],),
              )
            ],
          ),
        );
      },itemCount: 1,shrinkWrap: true,),
    );
  }
}
